package com.leiyuee.JavaBase;

import java.io.Serializable;
import java.util.Objects;

public class Student implements Cloneable, Serializable {
    private static final long serialVersionUID = 1L;

    private String name ;

    public Student() {
    }

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
